ngl: Use exact device scales for glyphs
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Sep 2021 23:07:55 +0000 (19:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Sep 2021 23:07:55 +0000 (19:07 -0400)
commitc6cacd2b2d397df7e73a8db166727f1ca405713b
treef00e712663275fc00db6a6ffe3d5e848bc85d752
parente9cf8c6cc766f3314097ae8a01f19dadee1b6b74
ngl: Use exact device scales for glyphs

We are rendering the glyphs on a larger surface,
and we should avoid introducing unnecessary
rounding errors here. Also, I've found that
we always need to enlarge the surface by one
pixels in each direction to avoid cutting off
the tops of large glyphs.
gsk/ngl/gsknglglyphlibrary.c